<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>主</title>
<link rel="stylesheet" type="text/css" href="__CSS__main.css"/>
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<import type='js' file="js.main" />
<style type="text/css">
b.w{padding: 4px 8px; background-color:#28b779; color:#fff; border-radius:3px; font-weight:normal;}
b.w1{background-color:#b6b3b3;}
b.w2{background-color:#ff5454;}
b.w3{background-color:#ff5454;}
.current{background-color: #36a9e1;}
.nav{ margin-left:10px; width:760px; height:30px; background-color: #06C; margin-bottom: 5px; }
.nav ul li {float: left;}
.nav ul li a { display:block; width:50px; line-height:30px;color:#FFF; padding-left:20px; font-size:14px;}
.nav ul li a:hover {display: block; background-color: #36a9e1;}
</style>
</head>

<body>  
<div class="main-frame">
	<div class="position">中国节 > 内容列表</div>
	<assign name="fstvid" value="$Think.get.fstvid"/> <!--用get获取当前fstvid地址栏参数 -->
	<div class="nav">
		<ul>
		    <li <if condition="7 eq $fstvid">class="current"</if>><a href="{:U('main',array('fstvid'=>7))}">春节</a></li>
			<li <if condition="6 eq $fstvid">class="current"</if>><a href="{:U('main',array('fstvid'=>6))}">元宵</a></li>
			<li <if condition="5 eq $fstvid">class="current"</if>><a href="{:U('main',array('fstvid'=>5))}">清明</a></li>
			<li <if condition="4 eq $fstvid">class="current"</if>><a href="{:U('main',array('fstvid'=>4))}">端午</a></li>
			<li <if condition="3 eq $fstvid">class="current"</if>><a href="{:U('main',array('fstvid'=>3))}">七夕</a></li>
			<li <if condition="2 eq $fstvid">class="current"</if>><a href="{:U('main',array('fstvid'=>2))}">中秋</a></li>
			<li <if condition="1 eq $fstvid">class="current"</if>><a href="{:U('main',array('fstvid'=>1))}">重阳</a></li>
		</ul>
	</div>
	<div class="table-list">
	 <table width="100%" border="1" cellspacing="0" cellpadding="0" class="indextable">
		    <tr class="th-bg">
		      <th width="2%">ID</th>
		      <th width="10%">文章标题</th>
		      <th width="9%">作者名称</th>
		      <th width="9%">申报单位</th>
		      <th width="15%">作品图片</th>
		      <th width="7%">节日名称</th>
			  <th width="7%">网络名称</th>
			  <th width="10%">发布日期</th>
		      <th width="10%">操作</th>
	        </tr>
	        <?php $u=1 ?>
	        <volist name='list' id='data' empty="暂无数据">
		    <tr class="tr-line">
		      <td><?php echo $u++ ?></td>
			  <td>{$data.title}</td>
		      <td style="text-align:left; padding-left:6px;">{$data.authornm}</td>
		      <td style="text-align:left; padding-left:6px;">{$data.vocation}</td>
		      <td><img src="{$data.picture}" width="150" /></td>
		      <td>{$data.fstvnm}</td>
			  <td>{$data.netname}</td>
			  <td>{$data.pubtime}</td>
		      <td>
	     		<a href="{:U('Index/editArtcle',array('id'=>$data['id']))}">编辑</a>
		      	<a href="{:U('Index/deleArtcle',array('id'=>$data['id']))}" class="del">删除</a>
		      </td>
	        </tr>
	        </volist>
      </table>
    </div>
    <if condition="$page neq 1"><div class="page">{$page}</div></if>
</div>
<style type="text/css">
a.batchma{padding-left:12px; color:#000; font-weight:bold;}
</style>
<script type="text/javascript">
	$(function(){
		$(".del").each(function(index, element) {
			var t = $(this);
			t.click(function(){
				var r=confirm("想好！确定要这么操作吗？");
				if (r==true){
					var refurl = $(this).attr('refurl');
					location.href = refurl;
				}else{
					return false;
				}
			})
		});
	})

	var getid = '{$Think.get.fstvid}';
	  	if(getid==''){
	  		$(".nav li:first").addClass("current");
	  	}
</script>
</body>
</html>
